Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve executable permissions when installing scripts #407

Merged
merged 2 commits into from
Jan 29, 2024
Merged

Preserve executable permissions when installing scripts #407

merged 2 commits into from
Jan 29, 2024

Conversation

cottsay
Copy link
Contributor

@cottsay cottsay commented Jan 24, 2024

🦟 Bug fix

Summary

These scripts use a "shebang" to indicate what interpreter to use when directly invoking them from a shell, however when they are installed, the executable permissions are dropped meaning that they actually can't be invoked directly from a shell.

An alternative to this change might be to drop the "shebang" from the scripts if they are intended to be invoked explicitly using the desired interpreter, i.e. sh tools/doc_check.sh.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

These scripts use a "shebang" to indicate what interpreter to use when
directly invoking them from a shell, however when they are installed,
the executable permissions are dropped meaning that they actually can't
be invoked directly from a shell.

An alternative to this change might be to drop the "shebang" from the
scripts if they are intended to be invoked explicitly using the desired
interpreter, i.e. `sh tools/doc_check.sh`.

Signed-off-by: Scott K Logan <[email protected]>
@github-actions github-actions bot added 🌱 garden Ignition Garden 🎵 harmonic Gazebo Harmonic labels Jan 24, 2024
@mjcarroll mjcarroll merged commit c1e0a63 into gazebosim:gz-cmake3 Jan 29, 2024
8 checks passed
@cottsay cottsay deleted the preserve-exe branch January 29, 2024 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌱 garden Ignition Garden 🎵 harmonic Gazebo Harmonic
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants